﻿namespace MsForgeReboot.Web.Areas.ControlPanel.Controllers
{
    using System.Collections.Generic;
    using System.Linq;
    using System.Web.Mvc;

    using MsForgeReboot.Framework.Extensions;

    public class PageController : Controller
    {

        /// <summary>
        /// Gets the URL friendly title.
        /// </summary>
        /// <param name="title">The title.</param>
        /// <returns>URL friendly title for the page or the blog post</returns>
        [Authorize()]
        public ActionResult GetUtlTitle(string title)
        {
            return this.Json(title.GetUrlFriendlyText(), JsonRequestBehavior.AllowGet);
        }
        
    }
}
